.class public Lcom/instagram/android/directshare/i/l;
.super Ljava/lang/Object;
.source "RequestedDirectSharesRowViewBinder.java"


# direct methods
.method public static a(Landroid/content/Context;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 35
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    sget v1, Lcom/facebook/ax;->row_requested_direct_share_header:I

    const/4 v2, 0x0

    invoke-virtual {v0, v1, p1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v1

    .line 38
    new-instance v2, Lcom/instagram/android/directshare/i/p;

    invoke-direct {v2}, Lcom/instagram/android/directshare/i/p;-><init>()V

    .line 39
    sget v0, Lcom/facebook/aw;->requested_direct_share_header_text:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v2, Lcom/instagram/android/directshare/i/p;->a:Landroid/widget/TextView;

    .line 40
    invoke-virtual {v1, v2}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 41
    return-object v1
.end method

.method public static a(Landroid/content/res/Resources;Lcom/instagram/android/directshare/i/p;I)V
    .locals 5
    .parameter
    .parameter
    .parameter

    .prologue
    .line 48
    iget-object v0, p1, Lcom/instagram/android/directshare/i/p;->a:Landroid/widget/TextView;

    sget v1, Lcom/facebook/ay;->directshare_requested_direct_shares_header:I

    const/4 v2, 0x1

    new-array v2, v2, [Ljava/lang/Object;

    const/4 v3, 0x0

    invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    aput-object v4, v2, v3

    invoke-virtual {p0, v1, p2, v2}, Landroid/content/res/Resources;->getQuantityString(II[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 51
    return-void
.end method

.method public static a(Lcom/instagram/android/directshare/i/q;Lcom/instagram/android/directshare/e/a;ILcom/instagram/android/directshare/i/o;)V
    .locals 3
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 75
    invoke-virtual {p1}, Lcom/instagram/android/directshare/e/a;->a()Lcom/instagram/android/model/b/e;

    move-result-object v0

    .line 77
    iget-object v1, p0, Lcom/instagram/android/directshare/i/q;->a:Lcom/instagram/android/mediacache/CircularImageView;

    invoke-virtual {v0}, Lcom/instagram/android/model/b/e;->j()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/instagram/android/mediacache/CircularImageView;->setUrl(Ljava/lang/String;)V

    .line 78
    iget-object v1, p0, Lcom/instagram/android/directshare/i/q;->b:Landroid/widget/TextView;

    invoke-virtual {v0}, Lcom/instagram/android/model/b/e;->f()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 79
    invoke-virtual {v0}, Lcom/instagram/android/model/b/e;->g()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/instagram/n/i;->a(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 80
    iget-object v0, p0, Lcom/instagram/android/directshare/i/q;->c:Landroid/widget/TextView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 85
    :goto_0
    iget-object v0, p0, Lcom/instagram/android/directshare/i/q;->d:Landroid/widget/ImageView;

    new-instance v1, Lcom/instagram/android/directshare/i/m;

    invoke-direct {v1, p3, p2}, Lcom/instagram/android/directshare/i/m;-><init>(Lcom/instagram/android/directshare/i/o;I)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 91
    iget-object v0, p0, Lcom/instagram/android/directshare/i/q;->e:Landroid/widget/ImageView;

    new-instance v1, Lcom/instagram/android/directshare/i/n;

    invoke-direct {v1, p3, p2}, Lcom/instagram/android/directshare/i/n;-><init>(Lcom/instagram/android/directshare/i/o;I)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 97
    return-void

    .line 82
    :cond_0
    iget-object v1, p0, Lcom/instagram/android/directshare/i/q;->c:Landroid/widget/TextView;

    invoke-virtual {v0}, Lcom/instagram/android/model/b/e;->g()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 83
    iget-object v0, p0, Lcom/instagram/android/directshare/i/q;->c:Landroid/widget/TextView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_0
.end method

.method public static b(Landroid/content/Context;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 54
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    sget v1, Lcom/facebook/ax;->row_requested_direct_share:I

    const/4 v2, 0x0

    invoke-virtual {v0, v1, p1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v1

    .line 58
    new-instance v2, Lcom/instagram/android/directshare/i/q;

    invoke-direct {v2}, Lcom/instagram/android/directshare/i/q;-><init>()V

    .line 59
    sget v0, Lcom/facebook/aw;->row_requested_direct_share_avatar:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/mediacache/CircularImageView;

    iput-object v0, v2, Lcom/instagram/android/directshare/i/q;->a:Lcom/instagram/android/mediacache/CircularImageView;

    .line 60
    sget v0, Lcom/facebook/aw;->row_requested_direct_share_user:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v2, Lcom/instagram/android/directshare/i/q;->b:Landroid/widget/TextView;

    .line 61
    sget v0, Lcom/facebook/aw;->row_requested_direct_share_fullname:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v2, Lcom/instagram/android/directshare/i/q;->c:Landroid/widget/TextView;

    .line 62
    sget v0, Lcom/facebook/aw;->row_requested_direct_share_accept:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, v2, Lcom/instagram/android/directshare/i/q;->d:Landroid/widget/ImageView;

    .line 63
    sget v0, Lcom/facebook/aw;->row_requested_direct_share_ignore:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, v2, Lcom/instagram/android/directshare/i/q;->e:Landroid/widget/ImageView;

    .line 65
    invoke-virtual {v1, v2}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 66
    return-object v1
.end method
